/*
 * $Id: ResourceGroupItem.java 3 2011-12-26 07:48:43Z forwardly@hotmail.com $
 * 
 * Copyright (c) 2001-2008 Accentrix Company Limited. All Rights Reserved.
 * 
 * Accentrix Company Limited. ("Accentrix") retains copyright on all text, source
 * and binary code contained in this software and documentation. Accentrix grants
 * Licensee a limited license to use this software, provided that this copyright
 * notice and license appear on all copies of the software. The software source
 * code is provided for reference purposes only and may not be copied, modified 
 * or distributed.
 * 
 * THIS SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS," WITHOUT ANY WARRANTY OF
 * ANY KIND UNLESS A SEPARATE WARRANTIES IS PURCHASED FROM ACCENTRIX AND REMAINS
 * VALID.  ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
 * INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 * PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. ACCENTRIX SHALL NOT BE LIABLE
 * FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING OR MODIFYING THE
 * SOFTWARE OR ITS DERIVATIVES.
 * 
 * IN NO EVENT WILL ACCENTRIX BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
 * FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES,
 * HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE
 * USE OF OR INABILITY TO USE SOFTWARE, EVEN IF ACCENTRIX HAS BEEN ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGES.
 */
package com.lightsaber.trade.as.entity.planning;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.lightsaber.trade.core.entity.BaseEntity;

@Entity
@Table(name = "MHPP_RESOURCE_GROUP_ITEM")
public class ResourceGroupItem extends BaseEntity {

    private static final long serialVersionUID = -265554631301742326L;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "RESOURCE_GROUP_ID", updatable = false)
    private ResourceGroup resourceGroup;

    @Column(name = "SERVING_CAMPUS", nullable = false, length = 100)
    private String servingCampus;

    @Column(name = "SERVING_DEPT", nullable = false, length = 100)
    private String servingDept;

    @Column(name = "CURRICULUM_HOURS", nullable = false)
    private Integer curriculumHours;

    @Column(name = "DISTRIBUTION", nullable = false)
    private Float distribution;

    public ResourceGroup getResourceGroup() {
        return resourceGroup;
    }

    public void setResourceGroup(final ResourceGroup resourceGroup) {
        this.resourceGroup = resourceGroup;
    }

    public String getServingCampus() {
        return servingCampus;
    }

    public void setServingCampus(final String servingCampus) {
        this.servingCampus = servingCampus;
    }

    public String getServingDept() {
        return servingDept;
    }

    public void setServingDept(final String servingDept) {
        this.servingDept = servingDept;
    }

    public Integer getCurriculumHours() {
        return curriculumHours;
    }

    public void setCurriculumHours(final Integer curriculumHours) {
        this.curriculumHours = curriculumHours;
    }

    public Float getDistribution() {
        return distribution;
    }

    public void setDistribution(final Float distribution) {
        this.distribution = distribution;
    }

}
